package com.shs.com.utils;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
    /*
    Date转string 将当前时间转成指定的时间格式
     */
    public static String getCurrentDateStr(String format){
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        String date = sdf.format(new Date());
        return  date;
    }
}
